package com.hx.petsever.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hx.petsever.entity.Cart;
import com.hx.petsever.entity.CartVo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;

public interface CartService  extends IService<Cart> {

    HashMap DeleteOne(@Param("userid") String userid , @Param("goodid") Integer goodid , @Param("num") Integer num);

    HashMap getAllbyId(@Param("userid") String userid);

    HashMap Insert (@Param("userid") String userid , @Param("goodid") Integer goodid , @Param("num") Integer num);

    HashMap update (@Param("userid") String  userid, @Param("goodid") String goodid , @Param("num") String num);
}
